package com.siyu.decorator.logger;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Author: siyu
 * @CreateTime: 2024-10-06
 * @Version: 1.0
 */
public class Test {
    // 不改变父类功能的前提下扩展功能
    private static final Logger logger = JsonLoggerFactory.getLogger(Test.class);
    private static final Logger logger2 = LoggerFactory.getLogger(Test.class);

    public static void main(String[] args) {
        logger.error("错误");
        logger2.error("错误");
    }
}
